package com.allwees.bs.core.model.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public abstract class ShippingAddressModel extends BaseEntity {
    @Column(length = 64)
    protected String userUuid;

    //是否是默认收货地址
    protected Integer isDefault;

    //名
    protected String firstName;

    //姓
    protected String lastName;

    //国际电话区号
    protected String itu;

    //电话号码
    protected String phone;

    //国家ID
    protected String country;

    //州/省名称
    protected String province;

    //城市名称
    protected String city;

    //国家ID
    @Column(name = "country_id")
    protected Integer countryId;

    //州/省ID
    @Column(name = "province_id")
    protected Integer provinceId;

    //城市ID
    @Column(name = "city_id")
    protected Integer cityId;

    //区号
    @Column(name = "zip_code")
    protected String zipCode;


    /**
     * 地区编码
     */
    @Column(name = "district")
    protected String district;

    /**
     * 地区编码ID
     */
    @Column(name = "district_id")
    protected Integer districtId;

    //地址第一行
    @Column(name = "address_line_1")
    protected String addressLine1;

    //地址第二行
    @Column(name = "address_line_2")
    protected String addressLine2;
	
	/**
     * 增加备注
     */
    protected String note;
}
